﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Props.CustomWeb.Controllers
{
    public class BaseController : Controller
    {
        public string VendorName
        {
            get
            {
                if (HttpContext.Request.Url.Host.ToLower().EndsWith(".props.net"))
                    return HttpContext.Request.Url.Host.Split('.')[0].ToLower();
                else
                    return String.Empty;
            }
        }

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
        }

    }
}
